package com.wyh;

import com.wyh.common.util.SnowFlakeGenerateIdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.wyh.mapper")
public class ShyProjectApplication {




    public static void main(String[] args) {
        SpringApplication.run(ShyProjectApplication.class, args);
    }





    @Bean
    public SnowFlakeGenerateIdWorker  getUserId(){
        return new SnowFlakeGenerateIdWorker(0L,0L);
    }
}
